package cn.tj212.xiaoyin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/")
public class IndexController {
    @RequestMapping("hello")
    public String hello(Model model){
        String name="xiaoyin";
        model.addAttribute("name",name);
        return "hello";
    }
}
